<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		
	</head>
	<body>
		<table>
			<tr>
				<td>1</td>
			</tr>
			<tr>
				<td>2</td>
			</tr>
			<tr>
				<td>3</td>
			</tr>
		</table>
		
		<script>
			var str = '<table>';
			for(var i=1;i<=5;i++){
//				str += '<tr><td>'+i+'</td></tr>';	
				str += '<tr>';
//				处理列
//				str +='<td>'+i+'</td>';
//				str +='<td>'+i+'</td>';
//				str +='<td>'+i+'</td>';
//				str +='<td>'+i+'</td>';
				for(var j=1;j<=4;j++){
					str +='<td>'+j+'</td>';
				}
				
//				处理列
				str += '</tr>';
			}
			
			str += '</table>';
			
			document.write(str);
		</script>
	</body>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
</html>
